local ads__heiyan = fk.CreateSkill({
  name = "ads__heiyan",
  tags = {Skill.Compulsory},
})

Fk:loadTranslationTable{
  ["ads__heiyan"] = "黑颜",
  [":ads__heiyan"] = "锁定技，场上其他角色的♥牌视为<font color='red'>♠</font>牌。",
}

ads__heiyan:addEffect("filter", {
  card_filter = function(self, to_select, player, isJudgeEvent)
    if to_select.suit ~= Card.Heart then return false end
    local cardOwner = Fk:currentRoom():getCardOwner(to_select.id)
    local isOtherPlayer = cardOwner ~= player
    return player:hasSkill(ads__heiyan.name) and cardOwner and isOtherPlayer and
           (table.contains(cardOwner:getCardIds("he"), to_select.id) or isJudgeEvent)
  end,
  view_as = function(self, player, to_select)
    return Fk:cloneCard(to_select.name, Card.Spade, to_select.number)
  end,
})

return ads__heiyan
